//
//  NSBundle+UIImage.m
//  WeiZi
//
//  Created by Joshpell on 2018/3/8.
//  Copyright © 2018年 Meniny. All rights reserved.
//

#import "NSBundle+UIImage.h"


@implementation NSBundle (UIImage)

+(UIImage *)getMainBundleImageWithName:(NSString *)imageName type:(NSString *)type{
    
    NSString * path = [[NSBundle mainBundle] pathForResource:imageName ofType:type];
    UIImage * image = [UIImage imageWithContentsOfFile:path];
    
    return image;
}

@end
